import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './store'
import 'normalize.css'
import '@/assets/css/index.css'

import * as ElIconModules from '@element-plus/icons'
const app = createApp(App)

// function transElIconName (iconName) {
//   return 'i' + iconName.replace(/[A-Z]/g, (match) => '-' + match.toLowerCase())
// }
for (const iconName in ElIconModules) {
  app.component(iconName, ElIconModules[iconName])
}

app.use(store).use(router).use(ElementPlus).mount('#app')
